import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MapSCopyGroupInfoHelper } from "./MapSCopyGroupInfoHelper";
import { SeqSWaitingPlayerHelper } from "./SeqSWaitingPlayerHelper";
type int = number;
//class SCopyWaitingInfo
    
    export  class SCopyWaitingInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCopyWaitingInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.copyCode);
            MapSCopyGroupInfoHelper.write(arg1, this.groupInfos);
            SeqSWaitingPlayerHelper.write(arg1, this.waitingPlayers);
            arg1.writeBool(this.haveSignUp);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.copyCode = arg1.readInt();
            this.groupInfos = MapSCopyGroupInfoHelper.read(arg1);
            this.waitingPlayers = SeqSWaitingPlayerHelper.read(arg1);
            this.haveSignUp = arg1.readBool();
            return;
        }

        public /* const */_type: int=40;

        public /* var */copyCode: int;

        public /* var */groupInfos: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */waitingPlayers: Array<any>;

        public /* var */haveSignUp: Boolean;

        public static /* var */_regist: SCopyWaitingInfo;
    }

            SCopyWaitingInfo._regist = new SCopyWaitingInfo(true);
        